import React from 'react'
import { newsClass } from '../../Api/HomeService'
import { JumboTabs } from 'antd-mobile'
export default function newsList({ list }: any) {
    console.log(list);

    if (list.length != 0) {
        return (
            <div>
                <JumboTabs defaultActiveKey='0'>
                    {list.data.map((item: any, index: any) => {
                        return <JumboTabs.Tab title={item.name} description='' key={index}>
                        </JumboTabs.Tab>
                    })}
                </JumboTabs >
            </div>
        )
    } else {
        return <div></div>
    }
}
